<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:58309/MasBudgetSourceService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" />
  <xs:complexType name="MasBudgetSource">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgSourceId" type="xs:int" />
      <xs:element minOccurs="0" name="BgSourceTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GfmisCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LowerMasBudgetSources" nillable="true" type="tns:ArrayOfMasBudgetSource" />
      <xs:element minOccurs="0" name="MasBudgetSourceType" nillable="true" type="tns:MasBudgetSourceType" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="UpperBgSourceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpperMasBudgetSource" nillable="true" type="tns:MasBudgetSource" />
      <xs:element minOccurs="0" name="UsePetition" type="xs:boolean" />
      <xs:element minOccurs="0" name="UseRequest" type="xs:boolean" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="YearType" nillable="true" type="q1:YearType" />
      <xs:element minOccurs="0" name="YearTypeId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBudgetSource" nillable="true" type="tns:MasBudgetSource" />
  <xs:complexType name="ArrayOfMasBudgetSource">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasBudgetSource" nillable="true" type="tns:MasBudgetSource" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasBudgetSource" nillable="true" type="tns:ArrayOfMasBudgetSource" />
  <xs:complexType name="MasBudgetSourceType">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgSourceTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasBudgetSourceType" nillable="true" type="tns:MasBudgetSourceType" />
</xs:schema>